module.exports = ( md, url, data) => {
  const baseUrl = 'https://feishoukeji.com:8080/'
  return new Promise((resolve, reject) => {
    wx.request({
      url: baseUrl + url,
      method: md,
      data: data,
      success: resolve,
      fail: reject,
      header:{
        "Content-Type": "application/x-www-form-urlencoded"
      }
    })
  })
}
